function imgupload(config_id,type){
	top.jzts();
	 var diag = new top.Dialog();
	 diag.Drag=true;
	 diag.Title ="图片上传";
	 diag.URL = '/main/'+config_id+'/'+type+'/web_config_fileupload';
	 diag.Width = 500;
	 diag.Height = 300;
	 diag.CancelEvent = function(){ //关闭事件
		diag.close();
		window.location.href="/main/web_config_page";
	 };
	 diag.show();

}
	
//宣传图片修改页面
function imgmanage(img_type,img_num){
	if(1==img_num){
		top.jzts();
		 var diag = new top.Dialog();
		 diag.Drag=true;
		 diag.Title ="图片上传";
		 diag.URL = '/main/'+img_type+'/web_adv_img_renew';
		 diag.Width = 500;
		 diag.Height = 300;
		 diag.CancelEvent = function(){ //关闭事件
			diag.close();
			window.location.href="/main/web_visit_img";
		 };
		 diag.show();
	}else if(img_num>1){
		window.location.href="/main/"+img_type+"/web_adv_img_list";
	}
}

function updatevisitimg(img_id){
		 top.jzts();
		 var diag = new top.Dialog();
		 diag.Drag=true;
		 diag.Title ="图片上传";
		 diag.URL = '/main/'+img_id+'/web_adv_img_renew_byid';
		 diag.Width = 500;
		 diag.Height = 400;
		 diag.CancelEvent = function(){ //关闭事件
			diag.close();
			var img_type = $("#img_type").val();
			window.location.href="/main/"+img_type+"/web_adv_img_list";
		 };
		 diag.show();
}